#include<allegro.h>
#define NB 3
#define nbr 2


struct jimmy
{
	BITMAP * img_right[NB];
	BITMAP * img_left[NB];
	int x, y;
        int direc;
};


typedef struct{
	int x;
	int y;
	int w;
	int h;
}Sprite;
typedef struct jimmy jimmy;

struct personnage
{
BITMAP * img[nbr];
int x, y;
};

typedef struct personnage personnage;
void load_jimmy(jimmy *jim);
void init_jimmy(jimmy *jim);
void move_right(jimmy *jim, BITMAP *background1);
void move_left(jimmy *jim, BITMAP *background1);
void jump(jimmy *jim, BITMAP *background1);
void draw_jimmy(jimmy jim, BITMAP * Buffer);
void move(jimmy *jim, BITMAP *background1);
void load_personnage(personnage *pers);
void init_personnage(personnage *pers);




